Ext.Loader.setConfig({
	enabled:true,
	disableCaching:false
});
Ext.application({
		requires:['Ext.container.Viewport','BookmarkIt.view.headerPanel','BookmarkIt.view.bookmarkViewPanel'],
        name: 'BookmarkIt',
        controllers:['BookmarkController'],
        launch: function() {
        	if(!Ext.isIE){
                Ext.create('Ext.container.Viewport', {
                    layout: {
                        type: 'border'          
                    },
    				minWidth:460,
                    autoScroll:false,
                    autoShow:true,
                    items: [ 
        				{	
        					xtype:'headerPanel',
        		            layout: {
        		                type: 'border'         
        		            },
        				    region: 'north',
        				    height: 80,
        					border:false
        				},
                        {
                            xtype: 'viewPanel',
                            region: 'center',
                            height: 250,
                            border: true
                        }
                    ]
               
                });
        	}else{
        		Ext.MessageBox.alert('WARNING','Sorry, but this web application is not compatible with IE!',function(){window.location = 'http://windows.microsoft.com/en-us/internet-explorer/downloads/ie-10/worldwide-languages';});
        	}
        }
});